package com.zhentao.utils.common;

import com.zhentao.model.user.pojo.ApUser;
import com.zhentao.model.wemwdia.pojo.WmUser;

public class AppUserThreadLocalUtil {
    private final static ThreadLocal<ApUser> THREAD_LOCAL=new ThreadLocal<>();

    public static void setUser(ApUser user){
        THREAD_LOCAL.set(user);
    }
    public static ApUser getUser(){
        return THREAD_LOCAL.get();
    }
    public static void remove(){
        THREAD_LOCAL.remove();
    }
}
